﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Krilib.Control.Base
{
    public class ChainedMouseEventArgs : MouseEventArgs
    {
        public ChainedMouseEventArgs()
            : base(MouseButtons.None, 0, 0, 0, 0)
        {
            Trapped = true;
        }
        private ChainedMouseEventArgs(MouseButtons mbs, int clicks, int x, int y, int delta) :
            base(mbs, clicks, x, y, delta)
        {
            Trapped = true;
        }
        public static ChainedMouseEventArgs Factory(MouseEventArgs ev)
        {
            return new ChainedMouseEventArgs(ev.Button, ev.Clicks, ev.X, ev.Y, ev.Delta);
        }

        public bool Trapped { get; set; }
    }
}
